import numpy as np
import matplotlib.pyplot as plt

# stock_change = np.random.normal(0, 1, (8, 10))
# print(stock_change[:2, :3])

# a1 = np.array([[[1, 2, 3], [4, 5, 6]], [[12, 3, 34], [5, 6, 7]]])
# print(a1[1, 0, 2])

# stock_change = np.random.normal(0, 1, (4, 5))
# print(stock_change)
# print(stock_change.reshape((-1, 10)))
# stock_change.resize((5, 4))
# print(stock_change)
# print(stock_change.T)

# print(stock_change.astype(np.int32))
# print(np.unique(stock_change).shape)


# stock_change = np.random.normal(0, 1, (8, 10))
# print(stock_change[0:5, 0:5])

# stock_change[stock_change > 1] = 2
#
# print(np.all(stock_change > 1))
# print(np.any(stock_change > 1))

a = np.array([[0, 0, 0], [1, 1, 1], [2, 2, 2]])
print(np.all(a > 0, 0))
